/**
 * 
 */
package cc.comac.mom.api;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cc.comac.mom.bean.EquipPartBorrow;
import cc.comac.mom.bean.EquipPartBorrowBean;
import cc.comac.mom.bean.EquipPartBorrowDetail;
import cc.comac.mom.bean.EquipPartBorrowDetailBean;
import cc.comac.mom.bean.ResultDev;
import cc.comac.mom.util.ResultBean;

/**
 * @Description:
 * @author: fyt
 * @date: 2020年7月16日下午9:36:23
 */
@FeignClient(name = "mom-equipment-mgmt-srv")
public interface EquipPartBorrowService {
	@RequestMapping(value = "/p/cs/EquipPartBorrowService/save",method = RequestMethod.POST)
	ResultBean save(@RequestBody EquipPartBorrow obj);
	@RequestMapping(value = "/p/cs/EquipPartBorrowService/selectByFields",method = RequestMethod.POST)
	ResultDev selectByFields(@RequestBody EquipPartBorrowBean obj);
	@RequestMapping(value = "/p/cs/EquipPartBorrowService/selectBorrowDetailByFields",method = RequestMethod.POST)
	ResultDev selectBorrowDetailByFields(@RequestBody EquipPartBorrowDetailBean obj);
	@RequestMapping(value = "/p/cs/EquipPartBorrowService/borrowConfig",method = RequestMethod.POST)
	ResultBean borrowConfig(@RequestBody List<Long> ids);
	
	@RequestMapping(value = "/p/cs/EquipPartBorrowService/deleteBatch",method = RequestMethod.POST)
    ResultBean deleteBatch(@RequestBody List<EquipPartBorrow> list);
	
	@RequestMapping(value = "/p/cs/EquipPartBorrowService/update",method = RequestMethod.POST)
    ResultBean update(@RequestBody EquipPartBorrow obj);
    
	@RequestMapping(value = "/p/cs/EquipPartBorrowService/deleteBatchBorrowDetail",method = RequestMethod.POST)
    public ResultBean deleteBatchBorrowDetail(@RequestBody List<EquipPartBorrowDetail> list);
}
